You are here

public function RuleComponent::getType in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::getType()
  2. 3.x src/Entity/RuleComponent.php \Drupal\rng\Entity\RuleComponent::getType()

Gets the component type.

Return value

string The component type: 'action' or 'condition'.

Overrides RuleComponentInterface::getType

1 call to RuleComponent::getType()
RuleComponent::createInstance in src/Entity/RuleComponent.php
Gets the configuration for the component.

File

src/Entity/RuleComponent.php, line 56

Class

RuleComponent
Defines a event rule plugin instance entity: a condition or action.

Namespace

Drupal\rng\Entity

Code

public function getType() {
  return $this
    ->get('type')->value;
}