LocaleTranslation
class LocaleTranslation extends QueueWorkerBase implements ContainerFactoryPluginInterface (View source)
Executes interface translation queue tasks.
Constants
| DERIVATIVE_SEPARATOR |
A string which is used to separate base plugin IDs from the derivative ID. |
Properties
| protected string | $pluginId | The plugin_id. |
from PluginBase |
| protected array | $pluginDefinition | The plugin implementation definition. |
from PluginBase |
| protected array | $configuration | Configuration information passed into the plugin. |
from PluginBase |
| protected ModuleHandlerInterface | $moduleHandler | The module handler. |
|
| protected QueueInterface | $queue | The queue object. |
Methods
Constructs a new LocaleTranslation object.
Creates an instance of the plugin.
Works on a single queue item.
Details
__construct(array $configuration, string $plugin_id, mixed $plugin_definition, ModuleHandlerInterface $module_handler, QueueInterface $queue)
Constructs a new LocaleTranslation object.
string
getPluginId()
Gets the plugin_id of the plugin instance.
string
getBaseId()
Gets the base_plugin_id of the plugin instance.
string|null
getDerivativeId()
Gets the derivative_id of the plugin instance.
array
getPluginDefinition()
Gets the definition of the plugin implementation.
bool
isConfigurable()
Determines if the plugin is configurable.
static ContainerFactoryPluginInterface
create(ContainerInterface $container, array $configuration, string $plugin_id, mixed $plugin_definition)
Creates an instance of the plugin.
processItem(mixed $data)
Works on a single queue item.