diff --git a/src/Annotation/PanelizerEntity.php b/src/Annotation/PanelizerEntity.php index 0bea991..6f2fcdb 100644 --- a/src/Annotation/PanelizerEntity.php +++ b/src/Annotation/PanelizerEntity.php @@ -7,7 +7,7 @@ namespace Drupal\panelizer\Annotation; -use Drupal\Component\Annotation\PluginID; +use Drupal\Component\Annotation\Plugin; /** * Defines a Panelizer entity item annotation object. @@ -19,6 +19,13 @@ use Drupal\Component\Annotation\PluginID; * * @Annotation */ -class PanelizerEntity extends PluginID { +class PanelizerEntity extends Plugin { + + /** + * The plugin label. + * + * @var string + */ + public $label; } diff --git a/src/Plugin/PanelizerEntity/PanelizerNode.php b/src/Plugin/PanelizerEntity/PanelizerNode.php index f5e387c..dbe862a 100644 --- a/src/Plugin/PanelizerEntity/PanelizerNode.php +++ b/src/Plugin/PanelizerEntity/PanelizerNode.php @@ -15,7 +15,10 @@ use Drupal\panels\Plugin\DisplayVariant\PanelsDisplayVariant; /** * Panelizer entity plugin for integrating with nodes. * - * @PanelizerEntity("node") + * @PanelizerEntity( + * id = "node", + * label = @Translation("Node") + * ) */ class PanelizerNode extends PanelizerEntityBase {