Returns field idendifier given by manager.
If manager not specific, returns identifier field of model reference.

@param string $manager

@return \stdClass
979697
public function getIdentifierReference($manager)
    {
        if (!isset($this->identifierReferences[$manager])) {
            $rule = new \stdClass();
            $rule->referenceField = $this->identifierField;
            $rule->field          = $this->identifierField;

            return $rule;
        }

        return $this->identifierReferences[$manager];
    }
110736
public function getManager(Driver $driver)
    {
        if (!in_array($driver->getDriver(), array_keys($this->managers))) {
            throw new DriverNotFoundException($driver->getDriver());
        }

        $manager = $this->managers[$driver->getDriver()];
        $manager->setModelClass($this->modelClass);

        return $manager;
    }
396604
public function getDocumentManager()
    {
        if (null === $this->dm) {
            $this->dm = $this->getServiceLocator()->get('doctrine.documentmanager.odm_default');
        }

        return $this->dm;
    }
516542
public function addManager($manager)
    {
        if (is_array($manager)) {
            foreach ($manager as $item) {
                $this->managerList->add($item);
            }

            return $this;
        }

        $this->managerList->add($manager);

        return $this;
    }
50461
public function getFieldDefinition($field)
    {
        if (isset($this->definition[$field])) {
            return $this->definition[$field];
        }
        if (isset($this->definition['fields'][$field])) {
            return $this->definition['fields'][$field];
        }
        return null;
    }
319907
protected function getManager()
    {
        if ($this->manager === null) {
            $filters = new \Expose\FilterCollection();
            $filters->load();

            $manager = new \Expose\Manager($filters);
            $this->manager = $manager;
        } else {
            $manager = $this->manager;
        }
        return $manager;
    }
848210
public function getDefaultManagerName()
    {
        if (isset($this->managers[$this->defaultManager])) {
            return $this->defaultManager;
        }

        return head($this->managers);
    }
366119
public static function findAllFields(TypeInfoInterface $type, TypeInfoManagerInterface $manager)
	{
		$fields = [];
		$types = array_filter(array_merge($type->getSupertypes($manager, true), [$type]), function(TypeInfoInterface $type) {
			return !$type->isInterface();
		});
		
		foreach($types as $source)
		{
			foreach($source->getFields() as $field)
			{
				if(!$field->isPrivate() || $field->getDeclaringType()->getKey() === $type->getKey())
				{
					$fields[$field->getName()] = $field;
				}
			}
		}
		
		return $fields;
	}
256474
public function manager(RendererManager $manager, Container $container)
    {
        $this->rendererManager = $manager;

        // Prepare Globals
        $this->prepareGlobals($container, $manager);

        return $manager;
    }
1126093
public function registerFieldManager()
    {
        $this->app->bind('field.manager', function ($app) {
            return new FieldManager(
                $app['hook.factory'],
                $app['asset.factory'],
                $app['view'],
                $app['field.validator']
            );
        });

        $this->app->alias('field.manager', FieldManager::class);
    }
191761
protected function createDefaultArgs(Manager $manager)
    {
        if (!$this->queryFilter->exists()) {
            return [];
        }
        return [
            self::FILTER => [
                'type' => $manager->getType($this->inputTypeName(self::FILTER)),
            ],
            self::EXCLUDE => [
                'type' => $manager->getType($this->inputTypeName(self::EXCLUDE)),
            ],
        ];
    }
595782
public function getManager()
    {
        if (!is_object($this->_manager)) {
            $this->_manager = Yii::$app->get($this->_manager);
        }

        return $this->_manager;
    }
1221124
public function getFieldType($identifier)
    {
        if (isset($this->fieldTypes[$identifier])) {
            return $this->fieldTypes[$identifier];
        }

        return $this->fieldTypes[$identifier] = new FieldType($this->fieldTypeRegistry->getFieldType($identifier));
    }
473606
public function getField($field)
    {
        $result = array_filter($this->getFields(), function($input) use ($field) {
            return $field === $input->getName();
        });

        return reset($result);
    }
1356155
public function getFieldId()
    {
        $fieldId = $this->getAttribute('fieldId');
        if (null === $fieldId && null !== $this->field) {
            $fieldId = $this->$fieldId = $this->field->id;
        }

        return $fieldId;
    }
532251
public function getArticle(&$manager = null) {
		$this->manager = $manager;
		$article = $this->json;

		return [
			'index' => $this->index,
			'thumb_material_media_id' => $article['thumb_material_media_id'],
			'articles' => $article,
		];

	}
559268
public function toArray(Manager $manager = null)
    {
        $typeValue = null;
        $type = $this->type;
        if (!$type instanceof Type) {
            if (!$manager) {
                throw new InvalidArgumentException(sprintf(
                    'Custom type %s provided, but no %s instance was given to %s',
                    $type,
                    Manager::class,
                    __CLASS__
                ));
            }
            $type = $manager->getType($type);
        }

        $args = [
            'description' => $this->description,
            'type' => $this->required ? Type::nonNull($type) : $type,
        ];

        if ($this->defaultValue !== null) {
            $args['defaultValue'] = $this->defaultValue;
        }

        return $args;
    }