You are here

DisplayVariantPluginDefinitionDecorator.php in Plugin 8.2

File

src/PluginDefinition/DisplayVariantPluginDefinitionDecorator.php
View source
<?php

namespace Drupal\plugin\PluginDefinition;


/**
 * Provides a display variant plugin definition decorator.
 *
 * @ingroup Plugin
 */
class DisplayVariantPluginDefinitionDecorator extends ArrayPluginDefinitionDecorator {

  /**
   * {@inheritdoc}
   */
  public function setLabel($label) {
    $this->arrayDefinition['admin_label'] = $label;
    return $this;
  }

  /**
   * {@inheritdoc}
   */
  public function getLabel() {
    return isset($this->arrayDefinition['admin_label']) ? $this->arrayDefinition['admin_label'] : NULL;
  }

}

Classes

Namesort descending Description
DisplayVariantPluginDefinitionDecorator Provides a display variant plugin definition decorator.