"This is an example string", * 1 => "Field values or properties", * ) * @endcode * * @see \Drupal\diff\Plugin\diff\Field\TextFieldBuilder * * @param FieldItemListInterface $field_items * Represents an entity field. * * @return mixed * An array of strings to be compared. If an empty array is returned it * means that a field is either empty or no properties need to be compared * for that field. */ public function build(FieldItemListInterface $field_items); /** * Returns if the plugin can be used for the provided field. * * @param \Drupal\Core\Field\FieldStorageDefinitionInterface $field_definition * The field definition that should be checked. * * @return bool * TRUE if the plugin can be used, FALSE otherwise. */ public static function isApplicable(FieldStorageDefinitionInterface $field_definition); }