X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FGenerator%2FPluginFieldWidgetGenerator.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FGenerator%2FPluginFieldWidgetGenerator.php;h=909239282290f662f54a2ded5939fbc51180ecc0;hp=3e252e29671bcaef45d94d211b8a7cfbe55ae4a2;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php b/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php index 3e252e296..909239282 100644 --- a/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php +++ b/vendor/drupal/console/src/Generator/PluginFieldWidgetGenerator.php @@ -12,6 +12,12 @@ use Drupal\Console\Extension\Manager; class PluginFieldWidgetGenerator extends Generator { + + /** + * @var Manager + */ + protected $extensionManager; + /** * PluginFieldWidgetGenerator constructor. * @@ -24,23 +30,12 @@ class PluginFieldWidgetGenerator extends Generator } /** - * Generator Plugin Field Formatter. - * - * @param string $module Module name - * @param string $class_name Plugin Class name - * @param string $label Plugin label - * @param string $plugin_id Plugin id - * @param string $field_type Field type this widget supports + * {@inheritdoc} */ - public function generate($module, $class_name, $label, $plugin_id, $field_type) + public function generate(array $parameters) { - $parameters = [ - 'module' => $module, - 'class_name' => $class_name, - 'label' => $label, - 'plugin_id' => $plugin_id, - 'field_type' => $field_type, - ]; + $module = $parameters['module']; + $class_name = $parameters['class_name']; $this->renderFile( 'module/src/Plugin/Field/FieldWidget/fieldwidget.php.twig',