You are here

public static function IngredientRecipeMLFormatter::defaultSettings in Recipe 8.2

Defines the default settings for this plugin.

Return value

array A list of default settings, keyed by the setting name.

Overrides IngredientFormatter::defaultSettings

File

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

Class

IngredientRecipeMLFormatter
Plugin implementation of the 'ingredient_recipeml' formatter.

Namespace

Drupal\recipe\Plugin\Field\FieldFormatter

Code

public static function defaultSettings() {

  // Remove the entity link element from the parent's settings.
  $settings = parent::defaultSettings();
  unset($settings['link']);
  return $settings;
}