FieldState.php in Field States UI 8.2
Same filename and directory in other branches
Namespace
Drupal\field_states_ui\AnnotationFile
src/Annotation/FieldState.phpView source
<?php
namespace Drupal\field_states_ui\Annotation;
use Drupal\Component\Annotation\Plugin;
/**
* Defines a field state annotation object.
*
* Plugin Namespace: Plugin\FieldState.
*
* For a working example, see
* \Drupal\field_states_ui\Plugin\FieldState\Visible
*
* @see \Drupal\field_states_ui\FieldStateInterface
* @see \Drupal\field_states_ui\FieldStateBase
* @see \Drupal\field_states_ui\FieldStateManager
* @see plugin_api
*
* @Annotation
*/
class FieldState extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the field state.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $label;
/**
* Optional: a brief description of the field state.
*
* This will be shown when adding or configuring this field state.
*
* @var \Drupal\Core\Annotation\Translation
*
* @ingroup plugin_translatable
*/
public $description;
}
Classes
Name | Description |
---|---|
FieldState | Defines a field state annotation object. |