public function addSubview($view)
{
/**
* Filter the potential adding of a subview.
*
* @param bool $continue Default TRUE. Set to FALSE to avoid adding of a subview.
*
*/
$continue = apply_filters('wpdk_view_should_add_subview', true, $view);
if ($continue) {
$view->superview = $this;
$this->subviews[$view->id] = $view;
/**
* Fires when a subview is added
*
* @param WPDKView $view The added subview
*/
do_action('wpdk_view_did_add_subview', $view);
}
return $view;
}