getInstantiatedTagObjects() public static method

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
return array An array with all tag object available.
示例#1
0
 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();
 }