function RulesComponentRepository::get

Overrides RulesComponentRepositoryInterface::get

File

src/Engine/RulesComponentRepository.php, line 76

Class

RulesComponentRepository
Provides an implementation of the component repository service.

Namespace

Drupal\rules\Engine

Code

public function get($id, $provider = 'rules_component') {
    $result = $this->getMultiple([
        $id,
    ], $provider);
    return reset($result) ?: NULL;
}