public function content_type() { $types = array('block.' . $this->type, 'block'); if (isset($this->title)) { array_unshift($types, 'block.' . $this->type . '.' . Utils::slugify($this->title)); } if (isset($this->_area)) { $areas = array(); foreach ($types as $type) { $areas[] = $this->_area . '.' . $type; } $types = array_merge($areas, $types); } $types = Plugins::filter('block_content_type_' . $this->type, $types, $this); $types = Plugins::filter('block_content_type', $types, $this); return $types; }