Skip to content
Snippets Groups Projects

Issue #3455113: Config action plugin IDs should be camel case.

Open Bryan Sharpe requested to merge issue/drupal-3455113:3455113-plugin-ids into 11.x
20 files
+ 92
31
Compare changes
  • Side-by-side
  • Inline
Files
20
@@ -22,8 +22,8 @@ public function getDerivativeDefinitions($base_plugin_definition) {
@@ -22,8 +22,8 @@ public function getDerivativeDefinitions($base_plugin_definition) {
// These derivatives apply to all entity types.
// These derivatives apply to all entity types.
$base_plugin_definition['entity_types'] = ['*'];
$base_plugin_definition['entity_types'] = ['*'];
$this->derivatives['ensure_exists'] = $base_plugin_definition + ['constructor_args' => ['exists' => Exists::ReturnEarlyIfExists]];
$this->derivatives['createIfNotExists'] = $base_plugin_definition + ['constructor_args' => ['exists' => Exists::ReturnEarlyIfExists]];
$this->derivatives['ensure_exists']['admin_label'] = $this->t('Ensure entity exists');
$this->derivatives['createIfNotExists']['admin_label'] = $this->t('Create entity if it does not exist');
$this->derivatives['create'] = $base_plugin_definition + ['constructor_args' => ['exists' => Exists::ErrorIfExists]];
$this->derivatives['create'] = $base_plugin_definition + ['constructor_args' => ['exists' => Exists::ErrorIfExists]];
$this->derivatives['create']['admin_label'] = $this->t('Entity create');
$this->derivatives['create']['admin_label'] = $this->t('Entity create');
Loading