Inpsyde\MultilingualPress\Relations\Post\RelationshipController::__construct PHP Метод

__construct() публичный Метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( Inpsyde\MultilingualPress\API\ContentRelations $content_relations )
$content_relations Inpsyde\MultilingualPress\API\ContentRelations Content relations API object.
    public function __construct(ContentRelations $content_relations)
    {
        $this->content_relations = $content_relations;
        $this->context = RelationshipContext::from_request();
    }