You are here

public function TocType::getOptions in TOC API 8

Returns the TOC type options.

Return value

array The table of contents options.

Overrides TocTypeInterface::getOptions

File

src/Entity/TocType.php, line 74

Class

TocType
Defines the TOC type entity.

Namespace

Drupal\toc_api\Entity

Code

public function getOptions() {
  return $this->options ?? [
    'template' => '',
    'title' => '',
    'block' => '',
    'header_count' => '',
    'header_min' => '',
    'header_max' => '',
    'header_allowed_tags' => '',
    'header_id' => '',
    'header_id_prefix' => '',
    'top_label' => '',
    'top_min' => '',
    'top_max' => '',
    'number_path' => '',
    'number_path_separator' => '',
    'number_path_truncate' => '',
    'default' => [
      'number_type' => '',
      'number_prefix' => '',
      'number_suffix' => '',
    ],
  ];
}