class DisplayModeLocalAction
Same name in other branches
- 10 core/modules/field_ui/src/DisplayModeLocalAction.php \Drupal\field_ui\DisplayModeLocalAction
Defines a local action plugin with modal dialog.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Menu\LocalActionDefault extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Menu\LocalActionInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
- class \Drupal\field_ui\DisplayModeLocalAction extends \Drupal\Core\Menu\LocalActionDefault
- class \Drupal\Core\Menu\LocalActionDefault extends \Drupal\Component\Plugin\PluginBase implements \Drupal\Core\Menu\LocalActionInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait
Expanded class hierarchy of DisplayModeLocalAction
1 string reference to 'DisplayModeLocalAction'
- field_ui.links.action.yml in core/
modules/ field_ui/ field_ui.links.action.yml - core/modules/field_ui/field_ui.links.action.yml
File
-
core/
modules/ field_ui/ src/ DisplayModeLocalAction.php, line 13
Namespace
Drupal\field_uiView source
class DisplayModeLocalAction extends LocalActionDefault {
/**
* {@inheritdoc}
*/
public function getOptions(RouteMatchInterface $route_match) {
$options = parent::getOptions($route_match);
$options = NestedArray::mergeDeepArray([
[
'attributes' => [
'class' => [
'button',
'use-ajax',
],
'data-dialog-type' => 'modal',
'data-dialog-options' => Json::encode([
'width' => '880',
]),
],
],
$options,
]);
return $options;
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.