You are here

SearchPluginDefinitionDecorator.php in Plugin 8.2

File

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

namespace Drupal\plugin\PluginDefinition;


/**
 * Provides a search plugin definition decorator.
 *
 * @ingroup Plugin
 */
class SearchPluginDefinitionDecorator extends ArrayPluginDefinitionDecorator {

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

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

}

Classes

Namesort descending Description
SearchPluginDefinitionDecorator Provides a search plugin definition decorator.