You are here

public function AssetInjectorBase::getConditionsInstance in Asset Injector 8.2

Gets a conditions condition plugin instance.

Parameters

string $instance_id: The condition plugin instance ID.

Return value

\Drupal\Core\Condition\ConditionInterface A condition plugin.

Overrides AssetInjectorInterface::getConditionsInstance

File

src/Entity/AssetInjectorBase.php, line 195

Class

AssetInjectorBase
Class AssetInjectorBase: Base asset injector class.

Namespace

Drupal\asset_injector\Entity

Code

public function getConditionsInstance($instance_id) {
  return $this
    ->getConditionsCollection()
    ->get($instance_id);
}