PHP Class Inpsyde\MultilingualPress\Relations\Post\RelationshipControlView

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Relations\Post\Search\SearchResultsView $search_results, AssetManager $asset_manager ) Constructor. Sets up the properties.
render ( RelationshipContext $context ) : void Renders the markup.

Private Methods

Method Description
localize_script ( ) : void Makes the relationship control settings available for JavaScript.
render_radio_input ( string $label, string $value, integer $remote_site_id ) : void Renders the radio input markup according to the given data.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Relations\Post\Search\SearchResultsView $search_results, AssetManager $asset_manager )
$search_results Inpsyde\MultilingualPress\Relations\Post\Search\SearchResultsView Search results view object.
$asset_manager Inpsyde\MultilingualPress\Asset\AssetManager Asset manager object.

render() public method

Renders the markup.
Since: 3.0.0
public render ( RelationshipContext $context ) : void
$context RelationshipContext Relationship context data object.
return void