You are here

public static function EntityBlockWidget::defaultSettings in Entityblock 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/EntityBlockWidget.php, line 30
Contains \Drupal\entityblock\Plugin\Field\FieldWidget\EntityBlockWidget.

Class

EntityBlockWidget
Plugin implementation of the 'EntityBlock' widget.

Namespace

Drupal\entityblock\Plugin\Field\FieldWidget

Code

public static function defaultSettings() {
  return array(
    'view_modes' => array(
      'full',
    ),
    'force_enabled' => FALSE,
    'force_title' => FALSE,
  ) + parent::defaultSettings();
}