You are here

public function IngredientRecipeMLFormatter::settingsSummary in Recipe 8.2

Returns a short summary for the current formatter settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the formatter has configurable settings.

Return value

string[] A short summary of the formatter settings.

Overrides IngredientFormatter::settingsSummary

File

src/Plugin/Field/FieldFormatter/IngredientRecipeMLFormatter.php, line 47

Class

IngredientRecipeMLFormatter
Plugin implementation of the 'ingredient_recipeml' formatter.

Namespace

Drupal\recipe\Plugin\Field\FieldFormatter

Code

public function settingsSummary() {

  // Remove the entity link information from the parent's settings summary.
  $summary = parent::settingsSummary();
  unset($summary[2]);
  return $summary;
}