Yoast\WP\SEO\Surfaces\Values
Meta::__construct
Create a meta value object.
Метод класса: Meta{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Meta = new Meta(); $Meta->__construct( $context, $container );
- $context(Meta_Tags_Context) (обязательный)
- The indexable presentation.
- $container(ContainerInterface) (обязательный)
- The DI container.
Код Meta::__construct() Meta:: construct Yoast 28.3
public function __construct( Meta_Tags_Context $context, ContainerInterface $container ) {
$this->container = $container;
$this->context = $context;
$this->helpers = $this->container->get( Helpers_Surface::class );
$this->replace_vars = $this->container->get( WPSEO_Replace_Vars::class );
$this->front_end = $this->container->get( Front_End_Integration::class );
}