Answers the attributes for the current page as an array.

@return array
965892
public function getCurrentPageAttributes()
    {
        // Create Attributes Array:
        
        $attributes = [];
        
        // Define Attributes Array:
        
        if ($id = $this->getCurrentPageClassID()) {
            $attributes['id'] = $id;
        }
        
        if ($class = $this->getCurrentPageAncestry()) {
            $attributes['class'] = $class;
        }
        
        // Extend Attributes Array:
        
        $this->extend('updateCurrentPageAttributes', $attributes);
        
        // Answer Attributes Array:
        
        return $attributes;
    }
158085
public function getAttributes()
    {
        $attributes = $this->attributes ? $this->attributes : [];

        array_forget($attributes, ['active', 'icon']);

        return HTML::attributes($attributes);
    }
1249602
protected function getDataAttrs(): array
    {
        $attrs = array_filter($this->html->getAttributes(), static function ($v, $k) {
            return strpos($k, 'data-') === 0;
        }, ARRAY_FILTER_USE_BOTH);

        $dataAttrs = [];

        foreach ($attrs as $key => $value) {
            $key = substr($key, 5);

            $dataAttrs[$key] = $value;
        }

        return $dataAttrs;
    }
751313
public function getAttributes(): array
    {
        $attributes = [];
        if ($this->blockId) {
            $attributes['block'] = $this->blockId;
        }
        $attributes['node'] = $this->node;
        return $attributes;
    }
644067
public function toArray()
    {
        if (isset($this->attributes[self::ATTR_PUBLISHED_AT])
            && $this->attributes[self::ATTR_PUBLISHED_AT] === '0000-00-00 00:00:00'
        ) {
            $this->attributes[self::ATTR_PUBLISHED_AT] = null;
        }

        $attributes = $this->attributesToArray();
        $version = $this->getLatestVersion()->toArray();

        $attributes['edited_at'] = $version['created_at'];
        $attributes['edited_by'] = $version['created_by'];

        return array_merge($version, $attributes, $this->relationsToArray());
    }
851300
public function getPublicAttributes()
    {
        $atts = [];

        foreach ($this->attributes as $key => $value) {
            $atts[$key] = $this->__get($key);
        }

        return $atts;
    }
555117
public function getDataAttributes()
    {
        $attributes = [
            'data-toggle' => 'popover',
            'data-container' => 'body',
            'data-placement' => $this->getPlacement()
        ];
        
        if (($parent = $this->getParent()) && $parent->ShowTitles) {
            $attributes['data-title'] = $this->Title;
        }
        
        $this->extend('updateDataAttributes', $attributes);
        
        return $attributes;
    }
303207
private function getAttributesList()
    {
        if (null === $this->attributesList) {
            $this->attributesList = [];

            $collection = $this->attributesCollectionFactory->create();

            foreach ($collection as $attribute) {
                $this->attributesList[$attribute->getId()] = [
                    'value' => $attribute->getAttributeCode(),
                    'label' => $attribute->getFrontendLabel(),
                ];
            }
        }

        return $this->attributesList;
    }
791293
public function getAttributes()
    {
        $attributes = array();

        foreach ($this->getProperty() as $name => $property) {
            if ($property->isAttribute()) {
                $attributes[$name] = $property;
            }
        }

        return $attributes;
    }
1062053
public function toArray()
    {
        $args = func_get_args();
        if ($args) {
            $attributes = [];
            foreach ($args as $key) {
                if ($this->hasAttribute($key)) {
                    $attributes[$key] = $this->get($key);
                }
            }
            return $attributes;
        } else {
            return $this->attributes;
        }
    }
532504
private function getAttributes()
    {
        $attributes = array();
        
        foreach ( $this->_columns as $column )
        {
            $attributes[$column["name"]] = $this->{$column["name"]};
        }
        
        return $attributes;
    }
1344459
public function getCurrentPageInfo()
    {
        $result = array(
            'handle' => $this->getCurrentPage()
        );
        
        if (Mage::registry('current_category') instanceof Mage_Catalog_Model_Category) {
            $result['category'] = Mage::registry('current_category')->getId();
        }

        if (Mage::registry('current_product') instanceof Mage_Catalog_Model_Product) {
            $result['product'] = Mage::registry('current_product')->getId();
        }
        
        return $result;
    }
630821
public function getAttributes()
    {
        $attributes = array_merge(
            parent::getAttributes(),
            $this->getDataAttributes()
        );
        
        if ($this->isMultiple()) {
            $attributes['multiple'] = true;
            $attributes['name'] = $this->getMultipleName();
        }
        
        if (!isset($attributes['data-placeholder'])) {
            $attributes['data-placeholder'] = $this->getEmptyString();
        }
        
        return $attributes;
    }
639134
public function toArray()
    {
        return [
            'asset_dir' => $this->assetDir(),
            'view_namespace' => $this->getViewNamespace(),
            'name' => $this->name(),
            'version' => $this->version(),
            'homepage' => $this->homepage(),
        ];
    }
533996
public function toArray()
    {
        return array(
            'firstPage' => $this->getFirstPage(),
            'lastPage' => $this->getLastPage(),
            'offset' => $this->countOffset(),
            'summary' => $this->getSummary(),
            'hasPages' => $this->hasPages(),
            'hasAdapter' => $this->hasAdapter(),
            'hasNextPage' => $this->hasNextPage(),
            'hasPreviousPage' => $this->hasPreviousPage(),
            'nextPage' => $this->getNextPage(),
            'previousPage' => $this->getPreviousPage(),
            'nextPageUrl' => $this->getNextPageUrl(),
            'previousPageUrl' => $this->getPreviousPageUrl(),
            'currentPage' => $this->getCurrentPage(),
            'perPageCount' => $this->getItemsPerPage(),
            'total' => $this->getTotalAmount(),
            'pageNumbers' => $this->getPageNumbers()
        );
    }
1201603
public function toArray()
	{
		$attributes = parent::toArray();

		if (isset($attributes['permissions']))
		{
			$attributes['permissions'] = $this->getPermissionsAttribute($attributes['permissions']);
		}

		return $attributes;
	}
389779
public function toArray() {
        $data = array_map(function ($value) {
            if ($value instanceof ArrayAble) {
                return $value->toArray();
            }
            return $value;
        }, $this->getPage());
        return [
            'paging' => [
                'limit' => $this->getPageSize(),
                'offset' => $this->getIndex(),
                'total' => $this->getTotal(),
                'more' => $this->hasMore()
            ],
            'data' => $data
        ];
    }