You are here

PluginCategoryDefinitionInterface.php in Plugin 8.2

File

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

namespace Drupal\plugin\PluginDefinition;


/**
 * Defines a plugin definition that includes a category.
 *
 * @ingroup Plugin
 */
interface PluginCategoryDefinitionInterface extends PluginDefinitionInterface {

  /**
   * Sets the category.
   *
   *
   * @param \Drupal\Core\StringTranslation\TranslatableString|string $category
   *   The category.
   *
   * @return $this
   */
  public function setCategory($category);

  /**
   * Gets the category.
   *
   * @return \Drupal\Core\StringTranslation\TranslatableString|string|null
   *   The category.
   */
  public function getCategory();

}

Interfaces

Namesort descending Description
PluginCategoryDefinitionInterface Defines a plugin definition that includes a category.