You are here

public function InstallableRequirement::listTypeId in Markdown 8.2

Retrieves the split typed identifier.

Return value

string[]|void An indexed array with type values: type, id; intended to be used with list().

1 call to InstallableRequirement::listTypeId()
InstallableRequirement::getObject in src/Annotation/InstallableRequirement.php
Retrieves the object defined by id/type.

File

src/Annotation/InstallableRequirement.php, line 197

Class

InstallableRequirement
Markdown Requirement Annotation.

Namespace

Drupal\markdown\Annotation

Code

public function listTypeId() {
  if ($this
    ->isTyped()) {
    return explode(':', $this->id, 2);
  }
}