You are here

public function OnlyOne::getAvailableContentTypesForPrint in Allow a content type only once (Only One) 8

Return a list of available content types for print.

Return value

array An array of available content types to print keyed by content type machine name.

Overrides OnlyOneInterface::getAvailableContentTypesForPrint

File

src/OnlyOne.php, line 403

Class

OnlyOne
Class OnlyOne.

Namespace

Drupal\onlyone

Code

public function getAvailableContentTypesForPrint() {
  return $this->formatter
    ->getContentTypesListForPrint($this
    ->getAvailableContentTypesSummarized());
}