Webiny\Component\Bootstrap\ApplicationClasses\View::getMeta PHP 메소드

getMeta() 공개 메소드

Get the meta list.
public getMeta ( ) : array
리턴 array
    public function getMeta()
    {
        return $this->meta;
    }

Usage Example

예제 #1
0
 public function testMeta()
 {
     $view = new View();
     $view->setMeta('keyword', 'testing');
     $view->setMeta('description', 'Just testing');
     $expectedArray = ['keyword' => 'testing', 'description' => 'Just testing'];
     $this->assertSame($expectedArray, $view->getMeta());
     $html = '';
     foreach ($expectedArray as $name => $content) {
         $html .= '<meta name="' . $name . '" content="' . $content . '"/>' . "\n";
     }
     $this->assertSame($html, $view->getMetaHtml());
 }