A category is locally small if for all objects $A, B$, $\textrm{Hom}(A,B)$ is a set. A category is small if its objects and morphisms are all elements of a single set.
Wikipedia defines a functor category $\mathcal D^{\mathcal C}$ only for $\mathcal C$ a small category (https://en.wikipedia.org/wiki/Functor_category). Why is this? If $\mathcal C$ is instead locally small, does it somehow not make sense to talk about the category of functors from $\mathcal C$ to $\mathcal D$?
Also, what does this mean for the Yoneda lemma? Do you need for $\mathcal C$ to be a small category in order for the statement "$\mathcal C$ is antiequivalent to the full subcategory of $\mathcal D^{\mathcal C}$ consisting of representable functors" to make sense?
It's provable that the category of functors from a small category is locally small while it is not necessarily the case for a locally small category. For example, let $F$ be the functor $\mathbf{Set}\to\mathbf{Set}$ that maps all sets to $1$ except that $\emptyset$ gets mapped to $\emptyset$. Then $\mathbf{Set}^\mathbf{Set}(F,Id)$ is essentially the class of all sets. Whether the category $\mathcal{D}^\mathcal{C}$ exists for non-small $\mathcal{C}$ will depend on what category you are working in (category of small/locally small/large categories) and foundational assumptions. I'll assume local smallness for the remainder.
As for the Yoneda lemma, it means that if $\mathcal{C}$ isn't small then the category $\mathbf{Set}^\mathcal{C^{op}}$ need not exist, therefore, the Yoneda embedding can't be presented as an arrow of that category or equivalently as an element of the hom-"set" of that category in this context. It may be a "large functor" or some other notion, but it's not an arrow in the category of locally small categories. We can still state and prove the Yoneda lemma, $\mathsf{Nat}(\mathsf{hom}(-,C), F) \cong FC$, it's just that $\mathsf{Nat}$ is not a hom-set between objects in a (locally small) category. We don't need to describe a natural transformation as an arrow in a functor category or a natural isomorphism as mutually inverse such arrows. We can directly formulate these notions (and then later prove that they do lead to categories sometimes). In general, $\mathsf{Nat}(F,G)$ will be a "proper class" and so part of proving the Yoneda lemma would be proving that $\mathsf{Nat}(\mathsf{hom}(-,C), F)$ is, in fact, a set.
Nevertheless, it is often convenient to have this additional structure such as cartesian closure. I suspect someone has made a "conservativity" theorem that warrants proving facts about locally small categories by operating on them as large categories, and there are set-theoretic foundations that give large categories some of the properties we'd like.
You may find A Higher-Order Calculus for Categories interesting.