You are here

public function InstallableRequirement::getType in Markdown 8.2

Retrieves the identifier type, if any.

Return value

string|void The identifier type, if any.

File

src/Annotation/InstallableRequirement.php, line 162

Class

InstallableRequirement
Markdown Requirement Annotation.

Namespace

Drupal\markdown\Annotation

Code

public function getType() {
  if ($this
    ->isTyped() && ($type = $this
    ->listTypeId()[0])) {
    return $type;
  }
}