protected function DefaultContentManager::getVertex in Default Content 8
Returns a vertex object for a given item link.
Ensures that the same object is returned for the same item link.
Parameters
string $item_link: The item link as a string.
Return value
object The vertex object.
1 call to DefaultContentManager::getVertex()
File
- src/
DefaultContentManager.php, line 281 - Contains \Drupal\defaultcontent\DefaultContentManager. @todo remove all references to linkmanager?
Class
- DefaultContentManager
- A service for handling import of default content. @todo throw useful exceptions
Namespace
Drupal\defaultcontentCode
protected function getVertex($item_link) {
if (!isset($this->vertexes[$item_link])) {
$this->vertexes[$item_link] = (object) array(
'link' => $item_link,
);
}
return $this->vertexes[$item_link];
}