You are here

public function WidgetBase::getConfiguration in Entity Browser 8

Same name and namespace in other branches
  1. 8.2 src/WidgetBase.php \Drupal\entity_browser\WidgetBase::getConfiguration()

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurableInterface::getConfiguration

File

src/WidgetBase.php, line 164

Class

WidgetBase
Base class for widget plugins.

Namespace

Drupal\entity_browser

Code

public function getConfiguration() {
  return [
    'settings' => array_diff_key($this->configuration, [
      'entity_browser_id' => 0,
    ]),
    'uuid' => $this
      ->uuid(),
    'weight' => $this
      ->getWeight(),
    'label' => $this
      ->label(),
    'id' => $this
      ->id(),
  ];
}