Defines a Translator plugin annotation object.
Expanded class hierarchy of TranslatorPlugin
\Drupal\tmgmt\TranslatorManager
class TranslatorPlugin extends Plugin {
/**
* The plugin ID.
*
* @var string
*/
public $id;
/**
* The human-readable name of the translator.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $label;
/**
* A short description of the translator.
*
* @ingroup plugin_translatable
*
* @var \Drupal\Core\Annotation\Translation
*/
public $description;
/**
* The name of the field formatter class.
*
* This is not provided manually, it will be added by the discovery mechanism.
*
* @var string
*/
public $class;
/**
* An array with default values for this translator.
*
* @var array
*/
public $default_settings = array();
/**
* Whether the plugin supports files.
*
* @var bool
*/
public $files = FALSE;
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TranslatorPlugin:: |
public | property | The name of the field formatter class. | |
TranslatorPlugin:: |
public | property | An array with default values for this translator. | |
TranslatorPlugin:: |
public | property | A short description of the translator. | |
TranslatorPlugin:: |
public | property | Whether the plugin supports files. | |
TranslatorPlugin:: |
public | property | The plugin ID. | |
TranslatorPlugin:: |
public | property | The human-readable name of the translator. |