You are here

public function TypesInfoEvent::getType in Charts 8.4

Same name and namespace in other branches
  1. 5.0.x src/Event/TypesInfoEvent.php \Drupal\charts\Event\TypesInfoEvent::getType()

Gets a chart type.

Parameters

string $type: The chart type name.

Return value

array The chart type info.

1 call to TypesInfoEvent::getType()
TypesInfoEvent::setType in src/Event/TypesInfoEvent.php
Sets a chart type information.

File

src/Event/TypesInfoEvent.php, line 61

Class

TypesInfoEvent
The TypesInfoEvent.

Namespace

Drupal\charts\Event

Code

public function getType($type) : array {
  return $this->types[$type] ?? [];
}