protected function get_layout( $slug ) {
		$layouts = $this->get_settings_layouts();

		foreach ( $layouts as $layout ) {
			if ( $layout['slug'] === $slug ) {
				return $layout;
			}
		}

		return [];
	}
protected function get_layout( $slug ) {
		$layouts = $this->get_settings_layouts();

		foreach ( $layouts as $layout ) {
			if ( $layout['slug'] === $slug ) {
				return $layout;
			}
		}

		return [];
	}
protected function get_layout ( $ slug ) { $ layouts = $ this -> get_settings_layouts ( ) ; foreach ( $ layouts as $ layout ) { if ( $ layout [ 'slug' ] === $ slug ) { return $ layout ; } } return [ ] ; }
Get layout by slug.

@param  string $slug

@return array
Get layout by slug .