Define single user's SEO Meta data.

@return array
487601
public function metaData()
    {
        Meta::setTitle($this->fullName)
            ->set("description", $this->about)
            ->set("og:type", "profile", "property")
            ->set("og:title", $this->fullName, "property")
            ->set("og:description", $this->about, "property")
            ->set("og:url", $this->href, "property")
            ->setImageOG($this->profileImage)
            ->setProfileOG($this)
            ->setHrefLangData($this)
            ->setCanonical($this->href)
            ->setWildcards(
                [
                '{{firstName}}' => $this->firstName,
                '{{lastName}}' => $this->lastName,
                '{{title}}' => $this->firstName . " " . $this->lastName,
                '{{sitename}}' => settings('siteTitle')
                ]
            );
    }
255108
public function getAssignedData()
    {
        // append the internal data to the view
        $this->viewData['View'] = [
            'Title'           => $this->getTitle(),
            'TitleHtml'       => $this->getTitleHtml(),
            'Scripts'         => $this->getScripts(),
            'ScriptsHtml'     => $this->getScriptsHtml(),
            'StyleSheets'     => $this->getStyleSheets(),
            'StyleSheetsHtml' => $this->getStyleSheetsHtml(),
            'Meta'            => $this->getMeta(),
            'MetaHtml'        => $this->getMetaHtml()
        ];

        return $this->viewData;
    }
453326
public function getBody()
    {
        return [
            'meta' => [
                'type' => 'authentication',
                'paginated' => false,
            ],
            'data' => [
                'user' => $this->user->singleView(),
                'tokenModel' => $this->tokenModel->getBody(),
                'refreshTokenModel' => $this->refreshTokenModel->getBody()
            ]
        ];
    }
35248
public function meta()
    {
        return array_merge([
            'wrapperClasses' => $this->wrapperClasses,
            'indexClasses' => $this->indexClasses,
            'inputClasses' => $this->inputClasses,
            'fieldClasses' => $this->fieldClasses,
            'panelFieldClasses' => $this->panelFieldClasses,
            'labelClasses' => $this->labelClasses,
            'panelLabelClasses' => $this->panelLabelClasses,
            'excerptClasses' => $this->excerptClasses,
            'thumbnailUrl' => $this->resolveThumbnailUrl(),
            'previewUrl' => call_user_func($this->previewUrlCallback),
            'downloadable' => isset($this->downloadResponseCallback) && ! empty($this->value),
            'deletable' => isset($this->deleteCallback) && $this->deletable,
        ], $this->meta);
    }
1030915
public function getPaginationMetaData()
    {
        $pagination = [
            'count' => $this->count,
            'offset' => $this->offset,
            'limit' => $this->limit,
            'next_page_params' => $this->getNextPageParams(),
        ];

        return $pagination;
    }
1344474
protected function gatherUserAgentData()
    {
        // User agent container
        $userAgents = ['original' => null, 'nodes_meta' => null];

        // Retrieve original user agent
        $originalUserAgent = user_agent();
        if (!empty($originalUserAgent)) {
            $userAgents['original'] = [
                'browser'  => $originalUserAgent->getBrowserWithVersion(),
                'platform' => $originalUserAgent->getPlatform(),
                'device'   => $originalUserAgent->getDevice(),
                'isMobile' => $originalUserAgent->isMobile(),
                'isTablet' => $originalUserAgent->isTablet(),
            ];
        }

        // Retrieve nodes user agent
        $nodesUserAgent = nodes_meta();
        if (!empty($nodesUserAgent)) {
            $userAgents['nodes_meta'] = [
                'version'  => $nodesUserAgent->getVersion(),
                'platform' => $nodesUserAgent->getPlatform(),
                'device'   => $nodesUserAgent->getDevice(),
            ];
        }

        return $userAgents;
    }
1179415
public function getBody()
    {

        return [
            'meta' => [
                'type' => $this->pageModel->getType(),
                'paginated' => true,
                'total' => (int)$this->pageModel->getTotal(),
                'page' => (int)$this->pageModel->getCurrentPage(),
                'pageSize' => (int)$this->pageModel->getPageSize(),
                'numberOfPages' => (int)$this->pageModel->numberOfPages(),
                'lastPage' => (bool)$this->pageModel->lastPage()
            ],
            'data' => $this->pageModel->getResults()
        ];
    }
977901
public function metaData()
    {
        Meta::setTitle($this->title)
            ->set("description", $this->about)
            ->set("og:type", "website", "property")
            ->set("og:title", $this->title, "property")
            ->set("og:description", $this->description, "property")
            ->set("og:url", $this->href, "property")
            ->setImageOG(($this->hasFeaturedImage() ? $this->featuredImage : null))
            ->setCanonical($this->href)
            ->setWildcards(
                [
                '{{title}}' => $this->title,
                '{{sitename}}' => settings('siteTitle')
                ]
            );
    }
870252
public function getMetas()
    {
        $ret = array();

        if (!isset($this->metas['title']) && $this->getParameter('nyroDev_utility.share.title')) {
            $this->setTitle($this->getParameter('nyroDev_utility.share.title'));
        }
        if (!isset($this->metas['description']) && $this->getParameter('nyroDev_utility.share.description')) {
            $this->setDescription($this->getParameter('nyroDev_utility.share.description'));
        }
        if (!isset($this->metas['keywords']) && $this->getParameter('nyroDev_utility.share.keywords')) {
            $this->set('keywords', $this->getParameter('nyroDev_utility.share.keywords'));
        }
        if (!isset($this->metasProp['og:image']) && $this->getParameter('nyroDev_utility.share.image')) {
            $this->setImage($this->getParameter('nyroDev_utility.share.image'));
        }

        if (isset($this->metas['title']) && $this->metas['title']) {
            $ret[] = '<title>'.$this->metas['title'].'</title>';
            unset($this->metas['title']);
        }

        foreach ($this->metas as $k => $v) {
            $ret[] = '<meta name="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }
        foreach ($this->metasProp as $k => $v) {
            $ret[] = '<meta property="'.$k.'" content="'.str_replace('"', '&quot;', $v).'" />';
        }

        return implode("\n", $ret);
    }
562324
public function index()
    {
        //  Meta & Breadcrumbs
        $this->data['page']->title            = APP_NAME . ' Blog';
        $this->data['page']->seo->description = '';
        $this->data['page']->seo->keywords    = '';

        // --------------------------------------------------------------------------

        //  Handle pagination
        $page      = $this->uri->rsegment(3);
        $perPage  = appSetting('home_per_page', 'blog-' . $this->oBlog->id);
        $perPage  = $perPage ? $perPage : 10;

        $this->data['pagination']           = new stdClass();
        $this->data['pagination']->page     = $page;
        $this->data['pagination']->per_page = $perPage;

        // --------------------------------------------------------------------------

        //  Send any additional data
        $data                    = array();
        $data['include_body']    = !appSetting('use_excerpts', 'blog-' . $this->oBlog->id);
        $data['include_gallery'] = appSetting('home_show_gallery', 'blog-' . $this->oBlog->id);
        $data['sort']            = array('bp.published', 'desc');

        //  Only published items which are not schduled for the future
        $data['where']   = array();
        $data['where'][] = array('column' => 'blog_id',      'value' => $this->oBlog->id);
        $data['where'][] = array('column' => 'is_published', 'value' => true);
        $data['where'][] = array('column' => 'published <=', 'value' => 'NOW()', 'escape' => false);

        // --------------------------------------------------------------------------

        //  Load posts and count
        $this->data['posts'] = $this->blog_post_model->getAll($page, $perPage, $data);
        $this->data['pagination']->total = $this->blog_post_model->countAll($data);

        // --------------------------------------------------------------------------

        //  Widgets
        $this->fetchSidebarWidgets();

        // --------------------------------------------------------------------------

        $this->data['isIndex'] = true;

        // --------------------------------------------------------------------------

        //  Load views
        $oView = Factory::service('View');
        $oView->load('structure/header', $this->data);
        $this->loadView('browse', $this->data);
        $oView->load('structure/footer', $this->data);
    }
1244771
public function toArray()
    {
        $array = [];

        if (! empty($this->data)) {
            $array['data'] = $this->data->toIdentifier();
        }

        if (! empty($this->meta)) {
            $array['meta'] = $this->meta;
        }

        if (! empty($this->links)) {
            $array['links'] = $this->links;
        }

        return $array;
    }
109805
public function rules()
    {
        $footer = $this->route('seo_footer');

        return [
            // Footer Rules
            'name'            => ['required', 'string'],
            'localization'    => ['required', 'string'],
            'uri'             => ['required', 'string', $this->getUniqueUriRule()->ignore($footer->id)],
            'locale'          => $this->getLocaleRule(),
            'page'            => $this->getPageRule(),
            // SEO Rules
            'seo_title'       => ['required', 'string'],
            'seo_description' => ['required', 'string'],
            'seo_keywords'    => ['required', 'array', 'min:1'],
        ];
    }
35674
public function get_array() {
	$response = array();
	
	// links
	if ($this->links) {
		$response['links'] = $this->links;
	}
	
	// primary data
	$response['data'] = $this->primary_collection;
	
	// included resources
	if ($this->included_data) {
		$response['included'] = array_values($this->included_data);
	}
	
	// meta data
	if ($this->meta_data) {
		$response['meta'] = $this->meta_data;
	}
	
	return $response;
}
574408
public function getMeta()
    {
        $metas = '';
        foreach ($this->headmeta as $meta) {
            $metas .= $meta . "\n";
        }
        $metas = rtrim($metas, "\n");
        return $metas;
    }
878618
def _get_meta_data(self):
        """"""
        return {
            "comment": self.request.headers.get("comment", ""),
            "author": self.get_current_user() or self.settings.get('annonymous_user')
        }
838006
public function getMetaData()
    {
        $data = [];

        $data['url'] = $this->request->getUri();

        $data['httpMethod'] = $this->request->getMethod();

        $data['params'] = $this->getInput() + $this->request->query->all();

        $data['clientIp'] = $this->request->getClientIp();

        if ($agent = $this->request->headers->get('User-Agent')) {
            $data['userAgent'] = $agent;
        }

        if ($headers = $this->request->headers->all()) {
            $data['headers'] = $headers;
        }

        return ['request' => $data];
    }
558705
public static function get_active_metaplates( ) {

		global $post;

		if( empty( $post ) ){ return; } // no post - return

		// GET METAPLATEs
		$metaplates = self::get_registry();
		$meta_stack = array();
		if ( is_array( $metaplates ) ) {
			foreach ( $metaplates as $metaplate_try ) {
				$is_plate = self::get_metaplate( $metaplate_try['id'] );
				if ( ! empty( $is_plate['post_type'][ $post->post_type ] ) ) {
					switch ( $is_plate['page_type'] ) {
						case 'single':
							if ( is_single() || is_page() ) {
								$meta_stack[] = $is_plate;
							}
							break;
						case 'archive':
							if ( ( is_archive() || is_front_page() ) && ( ! is_page() || ! is_single() ) ) {
								$meta_stack[] = $is_plate;
							}
							break;
						default:
							$meta_stack[] = $is_plate;
							break;
					}
				}
			}
		}

		return $meta_stack;

	}