public static function MachineName::defaultSettings in Machine name 8
Defines the default settings for this plugin.
Return value
array A list of default settings, keyed by the setting name.
Overrides PluginSettingsBase::defaultSettings
File
- src/
Plugin/ Field/ FieldWidget/ MachineName.php, line 24
Class
- MachineName
- Plugin annotation @FieldWidget( id = "machine_name", label = @Translation("Machine name"), field_types = { "machine_name" }, )
Namespace
Drupal\machine_name\Plugin\Field\FieldWidgetCode
public static function defaultSettings() {
return array(
'editable' => FALSE,
) + parent::defaultSettings();
}