Define single user's SEO Meta data.

@return array
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')
                ]
            );
    }
971067
public function toArray(): array
    {
        $data = $this->resourceToArray();

        if ($this->hasMetadata()) {
            $data['meta'] = $this->getMetadata();
        }

        return $data;
    }
365420
public function meta()
    {
        $meta = [];

        // look for basic parameters of transactions, only unconfirmed
        // transactions will have those fields empty.

        if (isset($this->attributes["id"]))
            $meta["id"] = (int) $this->attributes["id"];

        if (isset($this->attributes["height"]))
            $meta["height"] = (int) $this->attributes["height"];

        if (isset($this->attributes["hash"]))
            $meta["hash"] = ["data" => $this->attributes["hash"]];

        return $meta;
    }
360553
public function action_wp_meta() {
		$old_user = self::get_old_user();

		if ( $old_user instanceof WP_User ) {
			$link = sprintf(
				/* Translators: 1: user display name; 2: username; */
				__( 'Switch back to %1$s (%2$s)', 'user-switching' ),
				$old_user->display_name,
				$old_user->user_login
			);
			$url = add_query_arg( array(
				'redirect_to' => urlencode( self::current_url() ),
			), self::switch_back_url( $old_user ) );
			echo '<li id="user_switching_switch_on"><a href="' . esc_url( $url ) . '">' . esc_html( $link ) . '</a></li>';
		}
	}
782701
public function get_data() {
		// Do not make these strings translateable! They are for our support agents, the user won't see them!
		$data = array(
			'name'                                                     => $this->get_user_info(),
			'email'                                                    => $this->get_user_info( 'email' ),
			'WordPress Version'                                        => $this->get_wordpress_version(),
			'Server'                                                   => $this->get_server_info(),
			'<a href="' . admin_url( 'themes.php' ) . '">Theme</a>'    => $this->get_theme_info(),
			'<a href="' . admin_url( 'plugins.php' ) . '">Plugins</a>' => $this->get_current_plugins(),
		);

		foreach ( $this->products as $product ) {
			$data[ $product->get_item_name() ] = $this->get_product_info( $product );
		}

		return $data;
	}
951423
public function meta()
    {
        return [
            'Command' => e($this->meta['scheduler']->command),
            'Schedule' => e($this->meta['scheduler']->schedule),
            'Exit Code' => e($this->meta['exitcode'])
        ];
    }
535255
public function meta()
    {
        return [
            'Command' => e($this->meta['scheduler']->command),
            'Schedule' => e($this->meta['scheduler']->schedule),
            'Started at' => e($this->meta['scheduler']->last_run->diffForHumans()),
            'Your alert threshold' => e($this->meta['scheduler']->alert_run_time_greater_than).' seconds',
        ];
    }
478825
private function getAllInfo()
    {
        $data = [
            'username'       => $this->getUsername(),
            'image'          => $this->getImage(),
            'last_online'    => $this->getStatus('Last Online'),
            'gender'         => $this->getStatus('Gender'),
            'birthday'       => $this->getStatus('Birthday'),
            'location'       => $this->getStatus('Location'),
            'joined_date'    => $this->getStatus('Joined'),
            'forum_post'     => $this->getStatus2(0),
            'review'         => $this->getStatus2(1),
            'recommendation' => $this->getStatus2(2),
            'blog_post'      => $this->getStatus2(3),
            'club'           => $this->getStatus2(4),
            'sns'            => $this->getSns(),
            'friend'         => $this->getFriend(),
            'about'          => $this->getAbout(),
            'anime_stat'     => $this->getStat('anime'),
            'manga_stat'     => $this->getStat('manga'),
            'favorite'       => $this->getFavorite(),
        ];

        return $data;
    }
621825
public function metaData()
    {
        Meta::setTitle($this->title)
          ->set("description", $this->description)
          ->set("og:type", "profile", "property")
          ->set("og:title", $this->title, "property")
          ->set("og:description", $this->description, "property")
          ->set("og:url", $this->href, "property")
          ->setCanonical($this->href)
          ->setHrefLangData($this)
        ->setWildcards(
            [
            '{{title}}' => $this->title,
            '{{sitename}}' => settings('siteTitle')
              ]
        );
    }
1018891
public function getMetaHeaders()
    {
        if ($this->offsetExists('meta') && is_array($this->meta)) {
            $meta = $this->meta;
        } else {
            $meta = [];
        }
        if (!array_key_exists('Content-Type', $meta)) {
            $meta['Content-Type'] = 'text/html;charset=UTF-8';
        }

        // Remove null/empty values, this allow you to remove the Content-Type by making it empty.
        return array_filter($meta);
    }
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;
}
913476
public static function csrfMetaTags()
    {
        $request = Yii::$app->getRequest();
        if ($request instanceof Request && $request->enableCsrfValidation) {
            return static::tag('meta', '', ['name' => 'csrf-param', 'content' => $request->csrfParam]) . "\n    "
                . static::tag('meta', '', ['name' => 'csrf-token', 'content' => $request->getCsrfToken()]) . "\n";
        } else {
            return '';
        }
    }
121590
public function getBaseData()
    {
        // menu links for the application part
        $applicationMenuLinks = MenuLink::applicationMenuLinks();
        // menu links for the cms part
        $cmsMenus = MenuLink::cmsMenus();

        // user data
        $user = Auth::user();
        $user->avatar = $user->avatar(200, 200, true);

        // Get Labels
        $labels = Language::getlabels();
        $pluginsConfigs = Plugin::configs();

        // logout link
        $logoutLink = route('backend.base.logoutUser');

        // Logo
        $projectLogo =  Settings::logo();
        if($projectLogo) {
            $projectLogoURL = asset($projectLogo->thumb(200, 200));
        }else{
            $projectLogoURL = asset('public/images/logo-mana.png');
        }

        $settings  =  Settings::getAllSettings();
        $settings['logo'] = $projectLogoURL;

        // User data object
        //todo qetu eshte nje bug se query nuk bahet me keyby
        $postTypeSlugs = PostType::all()->toArray();
        $postTypeSlugs = array_pluck($postTypeSlugs, "slug");

        $globalData = [
            'post_type_slugs' => $postTypeSlugs,
            'permissions' => $user->getPermissions(),
            'settings' => $settings,
            'ini_upload_max_filesize' => ini_get('upload_max_filesize'),
            'ini_post_max_size' => ini_get('post_max_size')
        ];

        // all languages
        $languages = Language::all();

        return [
            'languages' => $languages,
            'applicationMenuLinks' => $applicationMenuLinks,
            'cmsMenus' => $cmsMenus,
            'auth' => $user,
            'labels' => $labels,
            'pluginsConfigs' => $pluginsConfigs,
            'logoutLink' => $logoutLink,
            'global_data' => $globalData,
        ];
    }
594958
public function usedBrowsers()
    {
        $results = [];

        foreach ($this->views as $view) {
            array_key_exists($view->browser, $results) ? $results[$view->browser]++ : $results[$view->browser] = 1;
        }

        return $results;
    }
1030915
public function getPaginationMetaData()
    {
        $pagination = [
            'count' => $this->count,
            'offset' => $this->offset,
            'limit' => $this->limit,
            'next_page_params' => $this->getNextPageParams(),
        ];

        return $pagination;
    }
345381
public function getDataForm(): array
    {
        $data = [];
        foreach ($this->dicionario as $meta) {
            if($meta->getFormat() === "password") {
                $data[$meta->getColumn()] = "";
            } else {
                $data[$meta->getColumn()] = $meta->getValue();
            }
        }

        return $data;
    }
574408
public function getMeta()
    {
        $metas = '';
        foreach ($this->headmeta as $meta) {
            $metas .= $meta . "\n";
        }
        $metas = rtrim($metas, "\n");
        return $metas;
    }