The main purpose of this method is to return all tag objects in admin context to provide help informations from the tags.
public static getInstantiatedTagObjects ( ) : array | ||
Résultat | array | An array with all tag object available. |
public function testInjectTag() { TagParser::inject('foo', ['class' => LinkTag::class]); $tags = TagParser::getInstantiatedTagObjects(); $this->arrayHasKey('foo', $tags); $this->assertInstanceOf('luya\\tag\\tags\\LinkTag', $tags['foo']); }
public function getTags() { return TagParser::getInstantiatedTagObjects(); }