You are here

public function SimpleMathField::__construct in Views Simple Math Field 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/field/SimpleMathField.php \Drupal\views_simple_math_field\Plugin\views\field\SimpleMathField::__construct()

SimpleMathField constructor.

Parameters

array $configuration:

$plugin_id:

$plugin_definition:

\Drupal\Core\Entity\EntityTypeManager $entityTypeManager:

Overrides HandlerBase::__construct

File

src/Plugin/views/field/SimpleMathField.php, line 35
Defines Drupal\views_simple_math_field\Plugin\views\field\SimpleMathField.

Class

SimpleMathField
Field handler to complete mathematical operation.

Namespace

Drupal\views_simple_math_field\Plugin\views\field

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManager $entityTypeManager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entityTypeManager;
}