<?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Setting\SettingBase.
- */
namespace Drupal\bootstrap\Plugin\Setting;
*/
public function getElementProperties() {
$properties = $this->getPluginDefinition();
+ $ignore_keys = [
+ 'class',
+ 'defaultValue',
+ 'definition',
+ 'groups',
+ 'id',
+ 'provider',
+ 'see',
+ ];
foreach ($properties as $name => $value) {
- if (in_array($name, ['class', 'defaultValue', 'definition', 'groups', 'id', 'provider', 'see'])) {
+ if (in_array($name, $ignore_keys)) {
unset($properties[$name]);
}
}
return $properties;
}
-
/**
* {@inheritdoc}
*/
}
return $group->$plugin_id;
}
+
/**
* {@inheritdoc}
*/