function DataProcessorManagerTrait::getDataProcessorManager

Gets the data processor manager.

Return value

\Drupal\rules\Context\DataProcessorManager The data processor manager.

File

src/Context/DataProcessorManagerTrait.php, line 38

Class

DataProcessorManagerTrait
Trait for easily using the data processor service.

Namespace

Drupal\rules\Context

Code

public function getDataProcessorManager() {
    if (empty($this->dataProcessorManager)) {
        $this->dataProcessorManager = \Drupal::service('plugin.manager.rules_data_processor');
    }
    return $this->dataProcessorManager;
}